package com.shushan.home.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: SectVipBean
 * @Desciption: //TODO
 * @author: yichaohua
 * @date: 2018-11-01
 */
public class SectVipBean extends NetBaseBean {

    public int id;
    public String type_name;
    public int original_price;
    public int promotion_price;
    public int vip_time;
    public int vip_day_time;
    public int state;

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        id = jsonObject.optInt("id",0);
        type_name = jsonObject.optString("type_name","");
        original_price = jsonObject.optInt("original_price",0);
        promotion_price = jsonObject.optInt("promotion_price",0);
        vip_time = jsonObject.optInt("vip_time",0);
        vip_day_time = jsonObject.optInt("vip_day_time",0);
        state = jsonObject.optInt("state",0);
    }
}
